<?php
/**
 *  XXXX Class
 *
 *  
 *
 *  @author     Vinod Kumar
 *  @version    $Revision: 1.0$
 *  @package    Project Name
 *
 */
class IndexControl extends MainControl {
    
    /**
     *  __construct
     *
     *  Set up request object & MainPage object
     *
     *  @param  object  request Request object
     */
    public function __construct(&$request) {

        $this->request = $request;
        $this->mainPage = new MainPage();
    }/* END __construct */
    
    /**
     *  userHome
     *
     *  Open user home page
     */
    public function userHome() {

        $this->mainPage->getPage('userhome.tpl');
    }/* END userHome */
    
    /**
     *  pageNotFound
     *
     *  Triggered when undefined function of this class is called
     */    
    public function pageNotFound() {

        $this->mainPage->getPage('PageNotFound.php', $this->request);
    }/* END pageNotFound */
    
}/*END IndexControl*/
?>